import request from '@/utils/request'

export function listRestaurantInfo(query) {
  return request({
    url: '/api/adminBiz/restaurant/restaurant/list',
    method: 'post',
    data: query
  })
}

export function addRestaurantInfo(data) {
  return request({
    url: '/api/adminBiz/restaurant/restaurant/add',
    method: 'post',
    data: data
  })
}

export function deleteRestaurantInfo(data) {
  return request({
    url: '/api/adminBiz/restaurant/restaurant/delete',
    method: 'post',
    data: data
  })
}

export function updateRestaurantInfo(data) {
  return request({
    url: '/api/adminBiz/restaurant/restaurant/update',
    method: 'post',
    data: data
  })
}

export function addImg(data) {
  return request({
    url: '/api/adminBiz/restaurant/restaurant/addPic',
    method: 'post',
    data: data
  })
}

export function deleteImg(data) {
  return request({
    url: '/api/adminBiz/restaurant/restaurant/deletePic',
    method: 'post',
    data: data
  })
}
